<template>
  <div>
    <Header />
    <router-view></router-view>
    <!-- meta.isShowFotter默认false，把需要隐藏的路由设置为true取反即可 -->
    <Footer v-show='!$route.meta.isShowFotter' />
  </div>
</template>

<script>
import Header from '@/components/Header';
import Footer from '@/components/Footer';
export default {
  name: 'App',
  components: {
    Header,
    Footer
  },
  data() {
    return {};
  },
  mounted() {
    this.$store.dispatch('home/getCategoryListDataActions');
  }
};
</script>

<style>
</style>
